.class Les/ix$b;
.super Ljava/lang/Object;
.source "NewDownloadDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/ix;-><init>(Landroid/app/Activity;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/app/Activity;

.field final synthetic b:Les/ix;


# direct methods
.method constructor <init>(Les/ix;Landroid/app/Activity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ix$b;->b:Les/ix;

    iput-object p2, p0, Les/ix$b;->a:Landroid/app/Activity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    .line 1
    iget-object p2, p0, Les/ix$b;->b:Les/ix;

    invoke-static {p2}, Les/ix;->b(Les/ix;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result p2

    if-eqz p2, :cond_0

    iget-object p2, p0, Les/ix$b;->b:Les/ix;

    invoke-static {p2}, Les/ix;->b(Les/ix;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/fs/util/f;->a(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_0

    .line 2
    iget-object p1, p0, Les/ix$b;->a:Landroid/app/Activity;

    const p2, 0x7f1106ad

    invoke-virtual {p1, p2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p2

    const/4 v0, 0x0

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    .line 3
    :cond_0
    iget-object p2, p0, Les/ix$b;->b:Les/ix;

    invoke-static {p2}, Les/ix;->a(Les/ix;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    .line 4
    iget-object v0, p0, Les/ix$b;->b:Les/ix;

    invoke-static {v0, p2}, Les/ix;->a(Les/ix;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 5
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->a0()Ljava/lang/String;

    move-result-object p1

    .line 7
    invoke-static {p1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 8
    new-instance p1, Les/ix$b$a;

    invoke-direct {p1, p0, p2}, Les/ix$b$a;-><init>(Les/ix$b;Ljava/lang/String;)V

    .line 9
    iget-object p2, p0, Les/ix$b;->a:Landroid/app/Activity;

    const/4 v0, 0x0

    invoke-static {p2, p1, v0}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Lcom/estrongs/android/ui/pcs/e$c;Landroid/content/DialogInterface$OnCancelListener;)V

    goto :goto_0

    .line 10
    :cond_1
    new-instance v0, Les/j70;

    iget-object v1, p0, Les/ix$b;->a:Landroid/app/Activity;

    invoke-static {v1}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v1

    iget-object v2, p0, Les/ix$b;->b:Les/ix;

    invoke-static {v2}, Les/ix;->b(Les/ix;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, p1, p2, v2}, Les/j70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    new-instance p1, Les/ix$b$b;

    invoke-direct {p1, p0}, Les/ix$b$b;-><init>(Les/ix$b;)V

    invoke-virtual {v0, p1}, Les/s80;->a(Les/y80;)V

    .line 12
    invoke-virtual {v0}, Les/s80;->d()V

    :cond_2
    :goto_0
    return-void
.end method
